package com.qingfeng.qfcms.service.impl;

import com.qingfeng.qfcms.dao.DictionariesDao;
import com.qingfeng.qfcms.domin.Dictionaries;
import com.qingfeng.qfcms.domin.User;
import com.qingfeng.qfcms.page.Page;
import com.qingfeng.qfcms.service.DictionariesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by User on 2016/8/9.
 */
@Service
public class DictionariesServiceImpl implements DictionariesService {

    @Resource
    private DictionariesDao dictionariesDao;
    public List<Dictionaries> findPage(Page page) {
        return dictionariesDao.findPage(page);
    }

    public List<Dictionaries> find(Map paraMap) {
        return dictionariesDao.find(paraMap);
    }

    public List<Dictionaries> list(Map paraMap) {
        return dictionariesDao.list(paraMap);
    }

    public Dictionaries get(Serializable id) {
        return dictionariesDao.get(id);
    }

    public void insert(Dictionaries entity) {
         dictionariesDao.insert(entity);
    }

    public void update(Dictionaries entity) {
         dictionariesDao.update(entity);
    }

    public void deleteById(Serializable id) {
        dictionariesDao.deleteById(id);
    }

    public void delete(Serializable[] ids) {
       dictionariesDao.delete(ids);
    }
}
